package com.zixuan.service.impl;

import com.zixuan.common.Result;
import com.zixuan.dao.IssueDao;
import com.zixuan.entity.IssueEntity;
import com.zixuan.service.IssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IssueServiceImpl implements IssueService {

    @Autowired
    private IssueDao issueDao;
    @Override
    public Result addIssue(IssueEntity issueEntity) {
        return issueDao.insert(issueEntity)>0 ? Result.ok() : Result.err();
    }
}
